﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="CloudMLDemo.Controllers" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<% var controller = ViewContext.Controller as HomeController; %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Download Job</title>
</head>
<body>
    <% if (!controller.IsSuccessful)
       {
           Response.Write("<p>Download failed, your job is not in finished state.</p>");
       }
       else
       {
           Response.Write("<meta http-equiv=\"refresh\" content=\"0; url=" + ViewContext.ViewData["downloadAddress"] + "\" />");
       }
    %>
</body>
</html>
